import java.util.Scanner;

// Press Shift twice to open the Search Everywhere dialog and type `show whitespaces`,
// then press Enter. You can now see whitespace characters in your code.
public class Main {
    public static void main(String[] args) {
          System.out.println("请默默地想一个1-10000之间的数字，记在心中，不要告诉任何人~~！！！");
          System.out.println("现在，请把你心中的数输入在这里，请放心，我会帮你保守这个秘密。请输入：");
          boolean sussOrFail = false;
          Scanner reader = new Scanner(System.in);
          int answer=reader.nextInt();
          System.out.println("太棒了，命运的齿轮开始转动~~~~.请挑战14次把这个数字猜出来。挑战成功可以召唤神龙~~~~");
          for(int i=1;i<=14;i++){
              System.out.print("这是第"+i+"次机会。请说出你的猜测：");
              int guessNumber= reader.nextInt();
              if(guessNumber>answer){
                  System.out.println("太大了。");

              }
              else if(guessNumber<answer){
                  System.out.println("太小了。");
              }
              else{
                  System.out.println("恭喜你答对了。");
                  sussOrFail =true;
                  break;
              }
          }
          if(!sussOrFail){
              System.out.println("挑战失败，下次再来。");
          }
        }
    }
